/*
* Copyright (c) 2016 . All Rights Reserved.
*/
package com.cgmnx.admin.web.controller.sys;

import com.cgmnx.admin.common.util.JacksonMapper;
import com.cgmnx.admin.model.enums.rbac.OperationType;
import com.cgmnx.admin.web.controller.BaseAdminController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author: created  Date: 16/12/22 Time: 下午6:06
 * @version: 1.0
 */
@Slf4j
@Controller
public class LogUiAdminController extends BaseAdminController {

    /**
     * 跳转到保存页面
     *
     * @return
     */
    @RequestMapping(value = "/cgmnx/log/list.html")
    public ModelAndView list() {

        ModelAndView modelAndView = new ModelAndView("pages/log/list");
        setLoginUser(modelAndView);
        setMenuList(modelAndView);
        modelAndView.addObject("logTypeList", JacksonMapper.encodeQuietly(OperationType.getList()));
        modelAndView.addObject("bizInfo", "{}");
        return modelAndView;
    }


}